/*  1:   */ package gov.sat.tax.fwsk.wlrz;
/*  2:   */ 
/*  3:   */ import java.io.IOException;
/*  4:   */ import java.io.InputStream;
/*  5:   */ import java.io.PrintStream;
/*  6:   */ import java.util.Properties;
/*  7:   */ 
/*  8:   */ public class WlrzConst
/*  9:   */ {
/* 10:11 */   private static boolean isDebug = false;
/* 11:16 */   private static boolean isRemoteDB = false;
/* 12:21 */   private static boolean isSupGDZC = false;
/* 13:26 */   private static boolean isNeedPwd = false;
/* 14:31 */   private static String host = null;
/* 15:36 */   private static String encode = null;
/* 16:38 */   private static Properties pro = null;
/* 17:   */   
/* 18:   */   public static void init()
/* 19:   */   {
/* 20:41 */     if (pro == null) {
/* 21:   */       try
/* 22:   */       {
/* 23:43 */         pro = new Properties();
/* 24:   */         
/* 25:45 */         InputStream is = WlrzConst.class.getClassLoader().getResourceAsStream(
/* 26:46 */           "/SysCfg.properties");
/* 27:47 */         pro.load(is);
/* 28:   */       }
/* 29:   */       catch (IOException e)
/* 30:   */       {
/* 31:49 */         e.printStackTrace();
/* 32:   */       }
/* 33:   */     }
/* 34:51 */     isSupGDZC = 
/* 35:52 */       Boolean.valueOf(pro.getProperty("isSupGDZC")).booleanValue();
/* 36:53 */     isNeedPwd = Boolean.valueOf(pro.getProperty("isNeedPwd"))
/* 37:54 */       .booleanValue();
/* 38:55 */     isDebug = Boolean.valueOf(pro.getProperty("debug")).booleanValue();
/* 39:56 */     encode = pro.getProperty("encode");
/* 40:57 */     System.out.println("----------------网上认证系统参数初始化----------------");
/* 41:58 */     System.out.println("    debug = " + isDebug);
/* 42:59 */     System.out.println("    encode = " + encode);
/* 43:60 */     System.out.println("    isSupGDZC = " + isSupGDZC);
/* 44:61 */     System.out.println("    isNeedPwd = " + isNeedPwd);
/* 45:62 */     System.out.println("--------------网上认证系统参数初始化完毕--------------");
/* 46:   */   }
/* 47:   */   
/* 48:   */   public static boolean isRemoteDB()
/* 49:   */   {
/* 50:66 */     return isRemoteDB;
/* 51:   */   }
/* 52:   */   
/* 53:   */   public static boolean isSupGDZC()
/* 54:   */   {
/* 55:70 */     return isSupGDZC;
/* 56:   */   }
/* 57:   */   
/* 58:   */   public static boolean isNeedPwd()
/* 59:   */   {
/* 60:74 */     return isNeedPwd;
/* 61:   */   }
/* 62:   */   
/* 63:   */   public static String getHost()
/* 64:   */   {
/* 65:78 */     return host;
/* 66:   */   }
/* 67:   */   
/* 68:   */   public static boolean isDebug()
/* 69:   */   {
/* 70:82 */     return isDebug;
/* 71:   */   }
/* 72:   */ }


/* Location:           D:\htjs\document\wsrz\WsrzEjbInf\
 * Qualified Name:     gov.sat.tax.fwsk.wlrz.WlrzConst
 * JD-Core Version:    0.7.0.1
 */